package com.broadengate.service.impl;

import com.broadengate.dao.DepositDao;
import com.broadengate.model.Card;
import com.broadengate.model.Deposit;
import com.broadengate.service.DepositService;

public class DepositServiceImpl implements DepositService {
	private DepositDao depositDao;
	
	public void deposit(Card card, Deposit deposit) {
		depositDao.deposit(card, deposit);
	}
	public void deleteDeposit(String cardNO){
		depositDao.deleteDepositByCard(cardNO);
	}
	
	public DepositDao getDepositDao() {
		return depositDao;
	}

	public void setDepositDao(DepositDao depositDao) {
		this.depositDao = depositDao;
	}

}
